
#dict 字典

info={'name':'huangxl','age':24,'gender':'男'}

print(info)

print(info['name'])

info['name']='gouyd'
info['age']='20'
info['gender']='女'

print(info)

if 'edu' in info:
    print(info['edu'])
else:
    print(info.get('edu','NONE'))

info['edu']='guet'
print(info)

info.pop('edu')
print(info)

#set 无重复key，因为key不能重复 所以set里面也不能有list

mset=set([1,2,3,3,4])
print(mset)

mset.add(5)
print(mset)

mset.remove(5)
print(mset)




